package com.zbest.zpay.gw.dal.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zbest.zpay.gw.dal.mapper.GwCommunicationConfigMapper;
import com.zbest.zpay.gw.dal.model.GwCommunicationConfigDO;

/**
 * Created by wenfeihu on 16/5/20.
 */
@Service("gwCommunicationConfigDAO")
public class GwCommunicationConfigDAO {

    @Resource
    private GwCommunicationConfigMapper gwCommunicationConfigMapper;

    public List<GwCommunicationConfigDO> queryAll() {
        return gwCommunicationConfigMapper.queryAll();
    }

    public GwCommunicationConfigDO getByChannelId(String channelId) {
        return gwCommunicationConfigMapper.queryByChannelId(channelId);
    }

}
